package com.fulihui.weixinclient.request;

import com.fulihui.weixinclient.http.HttpMethodEnum;

/**
 * 功能接口。抽象access_token公共请求对象
 * Created by Willard on 2015/9/15.
 */
public abstract class FuncWeixinRequest<T> extends WeixinJsonRequest<T> {
    private static final long serialVersionUID = -3315015608312917265L;

    protected String          access_token;

    @Override
    protected void childParam() {
        addParam("access_token", access_token);
    }

    @Override
    public HttpMethodEnum httpMethod() {
        return HttpMethodEnum.SSL_GET;
    }

    @Override
    public String requestData() {
        return null;
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }
}
